No need to highlight the file's basename when setting the base folder
authorFederico Mena Quintero <federico@gnome.org>
Fri, 1 Jul 2011 19:59:06 +0000 (14:59 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Sat, 2 Jul 2011 00:07:12 +0000 (19:07 -0500)
None of the cases where _gtk_file_chooser_entry_set_base_folder() appear to require
the entry highlighting the file's basename.  Doing the highlighting actually makes
things look weird in Save/Recent mode if you

  1. type a filename
  2. click on a recent-folder,

as right after (2) your filename would get its basename highlighted for
no apparent reason.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserentry.c

index 6ac0b4b4309fdbfbd6deb8641fd3504f26fbae89..e102652132af2cae7488d90f85af3156003ace41 100644 (file)
@@ -1830,7 +1830,6 @@ _gtk_file_chooser_entry_set_base_folder (GtkFileChooserEntry *chooser_entry,
     g_object_ref (chooser_entry->base_folder);
 
   clear_completions (chooser_entry);
-  _gtk_file_chooser_entry_select_filename (chooser_entry);
 }
 
 /**